<?php
class Users_model extends CI_Model {

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }

    function user_check($login, $pass)
    {
		$query = $this->db->get_where('Users', array('us_login' => $login, 'us_pass' => $pass),1,0);
		$result = $query->result_array();

        return $result;
    }

}
?>